<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        <!-- <p v-text="msg"></p><br>
        <p>{{msg2}}</p><br>
        <p v-text="msg">123</p><br>
        <p>{{msg}}123</p> -->
        <!-- <p v-html="msg3"></p> -->
        <div v-bind:class="{'classA':isRed}">我是v-bind指令，榜单绑定class属性</div>
        <div v-bind:style="{fontSize:size+'px'}">我是v-bind指令，绑定style属性</div>
        <a :href="url">点击前往学校官网</a>    <!--v-bind可以简写为“:”-->
    </div>
</body>
<script>
    new Vue({
        el:'#app',
        data:{
            msg:"Hello China!",
            msg2:"你好，中国",
            msg3:"<h1>Hello World<h1>",
            isRed:true,
            size:40,
            url:'http://www.ccit.js.cn/'
        }
    })
</script>
<style>
    .classA{color:red}
</style>
</html>